Repository navigation
GH-45796: [C++] Add integration directory to Meson configuration - #45797
Conversation
|
|
|
|
There was a problem hiding this comment.
@kou there is some inconsistency in the tests here that you alluded to before. Most tests do not define a main function and therefore use gtest_main_dep as a dependency. However, this JSON integration test does define its own main, so you have to link just gtest_dep or you end up with duplicate main symbols.
I don't know the history of this test enough to know if it is intentional that some tests define their own main function while others do not. Does it make sense to have two different dependencies or should we consider removing main from this test module?
There was a problem hiding this comment.
I think that this is intentional. The test is used for an unit test and an integration test with other implementations. If the test is used for an integration test with other implementations, we pass a custom --integration flag. So we have a custom main().
Could you use gtest_dep not gtest_main_dep here?
There was a problem hiding this comment.
Sounds good - yes this is already using gtest_dep :-)
There was a problem hiding this comment.
Why do we need to remove the if needs_json check?
There was a problem hiding this comment.
The integration tests requires RapidJSON but does not require the JSON option to be set, so to get that to work without disabling the integration test I think this need to exist without branching
There was a problem hiding this comment.
OK. Then can we use if needs_json or needs_integration instead of removing this condition?
There was a problem hiding this comment.
I think that this is intentional. The test is used for an unit test and an integration test with other implementations. If the test is used for an integration test with other implementations, we pass a custom --integration flag. So we have a custom main().
Could you use gtest_dep not gtest_main_dep here?
467fc64 to
1311f6e
Compare
|
@github-actions crossbow submit *meson |
|
Revision: 1311f6eb53071b11090b0285eaaa5d32c3cb63d8 Submitted crossbow builds: ursacomputing/crossbow @ actions-d35184ccea
|
|
@github-actions crossbow submit *meson |
|
Revision: d10ffa78f0163ad85347355f2ce68003413c3abc Submitted crossbow builds: ursacomputing/crossbow @ actions-c950246fa9
|
d10ffa7 to
92d190f
Compare
|
@github-actions crossbow submit *meson |
|
Revision: 92d190f Submitted crossbow builds: ursacomputing/crossbow @ actions-b70760d18c
|
| link_with: [arrow_test_lib], | ||
| ) | ||
|
|
||
| if needs_tests |
There was a problem hiding this comment.
In this particular case I don't think so - the CMake configuration compiles json_integration_test.cc into an executable, but only makes it a test if ARROW_BUILDS_TESTS is true, leaving it as a standalone executable otherwise.
There was a problem hiding this comment.
Ah, I see. We use the executable for integration test too.
| type: 'boolean', | ||
| description: 'Build the Arrow IPC extensions', | ||
| value: false, | ||
| value: true, |
There was a problem hiding this comment.
Rebase mistake - thanks!
There was a problem hiding this comment.
Errr...actually this is intentional. It looks like ARROW_IPC is ON by default in the CMake configuration. I can split this off into a separate PR if needed though
There was a problem hiding this comment.
Ah, OK. Could you split this off into a separated PR for easy to track later?
| link_with: [arrow_test_lib], | ||
| ) | ||
|
|
||
| if needs_tests |
There was a problem hiding this comment.
Ah, I see. We use the executable for integration test too.
| type: 'boolean', | ||
| description: 'Build the Arrow IPC extensions', | ||
| value: false, | ||
| value: true, |
There was a problem hiding this comment.
Ah, OK. Could you split this off into a separated PR for easy to track later?
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 278fa14. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 6 possible false positives for unstable benchmarks that are known to sometimes produce them. |
apache#45797) ### Rationale for this change This continues to add features to the Meson build configuration ### What changes are included in this PR? The integration directory has been added ### Are these changes tested? Yes ### Are there any user-facing changes? No * GitHub Issue: apache#45796 Authored-by: Will Ayd <william.ayd@icloud.com> Signed-off-by: Will Ayd <william.ayd@icloud.com>
Rationale for this change
This continues to add features to the Meson build configuration
What changes are included in this PR?
The integration directory has been added
Are these changes tested?
Yes
Are there any user-facing changes?
No